import { Layout } from '@fl/utils/routerHelper'

const enterpriseManagement: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/operations-pages/enterprise-management/enterprise-info/index.vue'),
            meta: {
                title: '企业信息列表',
            },
            name: 'operations-enterprise-info-list',
            path: 'operations-enterprise-info-list',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/enterprise-info/info.vue'),
            meta: {
                activeMenu: '/operations-pages/operations-enterprise-management/operations-enterprise-info-list',
                hidden: true,
                // noTagsView: true,
                title: '企业信息',
            },
            name: 'operations-enterprise-info-show',
            path: 'operations-enterprise-info-show',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/enterprise-info/check.vue'),
            meta: {
                activeMenu: '/operations-pages/operations-enterprise-management/operations-enterprise-info-list',
                hidden: true,
                noTagsView: true,
                title: '查看',
            },
            name: 'operations-enterprise-info-check',
            path: 'operations-enterprise-info-check',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/business-license/index.vue'),
            meta: {
                title: '营业执照管理',
            },
            name: 'business-license',
            path: 'business-license',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/relationship-review/index.vue'),
            meta: {
                title: '经销关系审核',
            },
            name: 'relationship-review',
            path: 'relationship-review',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/enterprise-account/index.vue'),
            meta: {
                title: '企业账号管理',
            },
            name: 'enterprise-account',
            path: 'enterprise-account',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/enterprise-account/log.vue'),
            meta: {
                activeMenu: '/operations-pages/operations-enterprise-management/enterprise-account',
                hidden: true,
                noTagsView: true,
                title: '审核记录',
            },
            name: 'enterprise-account-log',
            path: 'enterprise-account-log/:id',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/enterprise-account/show.vue'),
            meta: {
                activeMenu: '/operations-pages/operations-enterprise-management/enterprise-account',
                hidden: true,
                noTagsView: true,
                title: '企业账号详情',
            },
            name: 'enterprise-account-show',
            path: 'enterprise-account/:id',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/personal-account/index.vue'),
            meta: {
                title: '个人账号管理',
            },
            name: 'personal-account',
            path: 'personal-account',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/supplier-database/index.vue'),
            meta: {
                title: '供应商库',
            },
            name: 'supplier-database',
            path: 'supplier-database',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/supplier-database/show.vue'),
            meta: {
                activeMenu: '/operations-pages/operations-enterprise-management/supplier-database',
                hidden: true,
                noTagsView: true,
                title: '供应商库详情',
            },
            name: 'supplier-database-show',
            path: 'supplier-database/:id',
        },
        {
            component: () => import('@/operations-pages/enterprise-management/enterprise-info/edit/index.vue'),
            meta: {
                activeMenu: '/operations-pages/operations-enterprise-management/operations-enterprise-info-list',
                hidden: true,
                noTagsView: true,
                title: '供应商库详情',
            },
            name: 'supplier-database-edit',
            path: 'supplier-database-edit',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        title: '企业管理',
    },
    name: 'operations-enterprise-management',
    path: 'operations-enterprise-management',
}

export default enterpriseManagement
